package javase.abstract_gas_station;

class GasStationSystem {
    public static void main(String[] args) {
        SilverCard silverCard = new SilverCard();
        silverCard.setUsername("张三");
        silverCard.setType("银卡");
        silverCard.setBalance(8000.0);

        GoldenCard goldenCard = new GoldenCard();
        goldenCard.setUsername("李四");
        goldenCard.setBalance(10000.0);
        goldenCard.setType("金卡");

        //调用方法体
        silverCard.discount(8000);
        goldenCard.discount(10000);
    }
}
